﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<FinancialManagement.Models.ConfigInfo>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <title>系统配置</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        系统配置</h2>
    <% using (Html.BeginForm())
       { %><div>
           <fieldset>
               <legend>配置信息</legend>
               <div>
                   预算填报配置信息
                   <hr />
                   <div class="editor-label">
                       <%: Html.LabelFor(m => m.BudgetYear) %>
                   </div>
                   <div class="editor-field">
                       <%: Html.TextBoxFor(m => m.BudgetYear)%>
                       <%: Html.ValidationMessageFor(m => m.BudgetYear)%>
                   </div>
                   <div class="editor-label">
                       <%: Html.LabelFor(m => m.BudgetStartDate) %>
                   </div>
                   <div class="editor-field">
                       <%= Html.Telerik().DatePickerFor(m => m.BudgetStartDate)           
                   .HtmlAttributes(new { id = "DatePicker_wrapper"})            
                   .Min(System.DateTime.Now)            
                   .Max(System.DateTime.Now.AddYears(10))            
                   .ShowButton(true)            
                   .Value(System.DateTime.Now)            
                   .OpenOnFocus(true)
                   .Format("yyyy-MM-dd")            
                       %>
                       <%: Html.ValidationMessageFor(m => m.BudgetStartDate)%>
                   </div>
                   <div class="editor-label">
                       <%: Html.LabelFor(m => m.BudgetEndDate) %>
                   </div>
                   <div class="editor-field">
                       <%= Html.Telerik().DatePickerFor(m => m.BudgetEndDate)           
                   .HtmlAttributes(new { id = "DatePicker_wrapper"})            
                   .Min(System.DateTime.Now)            
                   .Max(System.DateTime.Now.AddYears(10))            
                   .ShowButton(true)            
                   .Value(System.DateTime.Now)            
                   .OpenOnFocus(true)
                   .Format("yyyy-MM-dd")            
                       %>
                       <%: Html.ValidationMessageFor(m => m.BudgetEndDate)%>
                   </div>
               </div>
    <div>
        预算填报配置信息
        <hr />
        <div class="editor-label">
            <%: Html.LabelFor(m => m.ActualYear) %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(m => m.ActualYear)%>
            <%: Html.ValidationMessageFor(m => m.ActualYear)%>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(m => m.ActualStartDate) %>
        </div>
        <div class="editor-field">
            <%= Html.Telerik().DatePickerFor(m => m.ActualStartDate)           
                   .HtmlAttributes(new { id = "DatePicker_wrapper"})            
                   .Min(System.DateTime.Now)            
                   .Max(System.DateTime.Now.AddYears(10))            
                   .ShowButton(true)            
                   .Value(System.DateTime.Now)            
                   .OpenOnFocus(true)
                   .Format("yyyy-MM-dd")            
            %>
            <%: Html.ValidationMessageFor(m => m.ActualStartDate)%>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(m => m.ActualEndDate) %>
        </div>
        <div class="editor-field">
            <%= Html.Telerik().DatePickerFor(m => m.ActualStartDate)           
                   .HtmlAttributes(new { id = "DatePicker_wrapper"})            
                   .Min(System.DateTime.Now)            
                   .Max(System.DateTime.Now.AddYears(10))            
                   .ShowButton(true)            
                   .Value(System.DateTime.Now)            
                   .OpenOnFocus(true)
                   .Format("yyyy-MM-dd")            
            %>
            <%: Html.ValidationMessageFor(m => m.ActualEndDate)%>
        </div>
    </div>
    <p>
        <input type="button" value="提 交" onclick="insertContent()" />
        <input type="button" value="取 消" onclick="closeWindow()" />
    </p>
    </fieldset> </div>
    <% } %>
</asp:Content>
